using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace TicketSellerService
{
	[ServiceContract]
	public interface IFlightTicketService
	{
		[OperationContract]
        [WebGet(
            UriTemplate = "/search/source/{source}/destination/{destination}?date={date}")]
        AvailableFlights search(string source, string destination, string date);
		
		[OperationContract]
		[WebInvoke( Method = "POST",
		           UriTemplate = "/reserve/flightNumber/{flightNumber}?date={date}")]
		TicketReservation reserve( string flightNumber, string date); 
		
		[OperationContract]
		[WebInvoke( Method = "POST",
		           UriTemplate = "/cancel/reservation/{rsrvId}")]
		string cancel( string rsrvId);
	}
}

